package com.Darkra1Zzz.dao;

import com.Darkra1Zzz.entity.Type;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TypeDao {
    public boolean insert(Type type);
    public boolean delete(int id);
    public int update(Type type);
    public List<Type>findAllType();
    public List<Type> findTypeList(@Param("id") Integer id,@Param("type") String type,@Param("name") String name,@Param("currentPage")Integer currentPage, @Param("pageSize")Integer pageSize);

    public int countAllType(Type type);
}
